// 网点管理
import request from '@/utils/request'

// 获取树状机构信息
export const organTree = () => request('/business-hall/tree')

// 获取快递员分页数据
export const getEmployee = (data) => request('/business-hall/courier/page', { params: data })

// 获取业务范围
export const getScope = (data) => request(`/business-hall/scope/${data.id}/${data.type}`)

// 司机管理
// 获取司机分页数据
export const getDriver = (data) => request('/driver/page', { params: data })

// 获取司机基本信息详情
export const getDriverInfo = (id) => request(`/driver/${id}`)

// 获取已经停用的车辆
export const unWorkingTrucks = () => request('/unWorkingTrucks')

// 获取车辆详情
export const getTrucksInfo = (id) => request(`/truck/${id}`)

// 获取司机驾驶证信息
export const driverLicense = (id) => request(`/driverLicense/${id}`)

// 排班管理
// 分页查询排班
export const getGrade = (data) => request('/work-schedulings', { params: data })
